'use strict';

const Controller = require('egg').Controller;

class LoginController extends Controller {
  async verify() {
    const { ctx, service } = this;
    const user = await service.login.judge(ctx.request.body);
    this.ctx.body = JSON.stringify(user);
  }
}

module.exports = LoginController;
